package com.fl.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/*
 * 123123
 * @Date 2021/2/17 16:42
 * @Param
 * @param null null
 * @return
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String message;
    private T      data;

    /*
   * @author fanlei
   * @Date 2021/2/17 16:43
   * @Param [code, message]
   * @return
   **/
    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
